package org.linlinjava.litemall.wx.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @Description: 秒杀商品信息
 * @author: Destin
 * @date: 2021-09-26
 */
@ApiModel("秒杀商品信息")
@Data
public class SecKillInfoVo {

    @ApiModelProperty("商品数据id")
    private Integer id;

    @ApiModelProperty("商品id")
    private Integer goodId;

    private Integer killNumber;

    private Integer initialNumber;

    private Byte sortOrder;

    @ApiModelProperty("图片url")
    private String picUrl;

    @ApiModelProperty("商品名称")
    private String name;

    @ApiModelProperty("分类名称")
    private String categoryName;

    @JsonIgnore
    private Integer categoryId;

    @ApiModelProperty("秒杀价格")
    private BigDecimal killPrice;

    private String brief;

    private BigDecimal retailPrice;

    private Integer saleNum;

    @ApiModelProperty("开始时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
}
